<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('SupervisionReport/index')}">监理报告管理</a></li>
            <if condition="($level eq '0' or $level eq '3')"><li><a href="{:U('SupervisionReport/add')}">新增监理报告</a></li></if>
        </ul>
        <form class="well form-search  form-inline" method="post" action="{:U('SupervisionReport/index')}">
            <div class="form-group">
                <label class="sr-only">标题</label>
                <input type="text" name="sub_project" class="form-control" value="{:I('request.sub_project','')}" placeholder="输入分布分项工程查找...">
            </div>
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn btn-danger" href="{:U('SupervisionReport/index')}">清空</a>
        </form>       
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>主管部门</th>
                    <th>施工单位</th>
                    <th>分部分项工程</th>
                    <th>发送时间</th>
                    <th>发送编号</th>
                    <th>创建人</th>
                    <th>创建时间</th>
                    <th style="width:80px;">是否发布</th>
                    <th width="120">{:L('ACTIONS')}</th>
                </tr>
            </thead>
            <tbody>
            <foreach name="results" item="vo">
                <tr>
                    <td>{$vo.code}</td>
                    <td>{$vo.manager_department}</td>
                    <td>{$vo.executing_department}</td>
                    <td>{$vo.sub_project}</td>
                    <td>{$vo.supervision_notice_date}</td>
                    <td>{$vo.supervision_notice_code}</td>
                    <td>{$vo.real_name}</td>
                    <td>{$vo.publish_time}</td>
                    <td class="text-center">
                <if condition="$vo['is_publish'] eq 1">
                    <i class="glyphicon glyphicon-ok text-success"></i>
                    <else />
                    <i class="glyphicon glyphicon glyphicon-remove text-danger"></i>
                </if>
                </td>
                <td>
                    <a href='{:U("SupervisionReport/view",array("id"=>$vo["id"]))}'>查看</a>
                    <if condition="$vo['is_publish'] eq 0">
                        |
                        <a href='{:U("SupervisionReport/edit",array("id"=>$vo["id"]))}'>修改</a>
                        |
                        <a class="js-ajax-delete" href="{:U('SupervisionReport/delete',array('id'=>$vo['id']))}">删除</a>
                    </if>

                    <if condition="$vo['is_publish'] eq 1 and $level eq 0">
                        |
                        <a class="js-ajax-delete" href="{:U('SupervisionReport/delete',array('id'=>$vo['id']))}">删除</a>
                    </if>
                </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>